//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { UctooSession, UctooSessionResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooUctooSessionList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<UctooSessionResponse>(`/uctoo/uctoo_session/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooUctooSession = async (id: string) => {
  return requestClient.get<UctooSession>(`/uctoo/uctoo_session/${id}`);
};

export const adductooUctooSession = async (data: Partial<UctooSession>) => {
  return requestClient.post<UctooSession>('/uctoo/uctoo_session/add', data);
};

export const edituctooUctooSession = async (data: Partial<UctooSession>) => {
  return requestClient.post<UctooSession>('/uctoo/uctoo_session/edit', data);
};

export const deleteuctooUctooSession = async (id: string) => {
  return requestClient.post<any>('/uctoo/uctoo_session/del', { id });
};
